
cmake_minimum_required(VERSION 3.1)

set(_this modern_cxx)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
project(test)
set(_headers )
set(_sources
    Test.cpp
    tag_dispatch.cpp
    template.cpp
    void_t.cpp
    type_traits.cpp
    variadic.cpp
    function_bind_lamda_functor.cpp
    bitset.cpp
    exception.cpp
    tuple.cpp
    schedule.cpp
    array_handle.cpp
)

add_executable(${_this} 
  ${_headers}
  ${_sources}
)

target_link_libraries(${_this}
PRIVATE gtest_main
PUBLIC _compiler_flags
PUBLIC vtkm::cont vtkm::filter vtkm::source
)

add_test(
    NAME ${_this}
    COMMAND ${_this}
)

